
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class RankingDateCfg : public ManualSingleton <RankingDateCfg>
{
	friend ManualSingleton <RankingDateCfg>;
public:
	RankingDateCfg();
	~RankingDateCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const RankingDateCfgInfo *GetRankingDateCfgInfo(int32_t dateID);
	const RankingDateCfgMap *GetRankingDateCfgMap() { return &m_RankingDateCfgMap; }
private:
	RankingDateCfgMap m_RankingDateCfgMap;
};

#define  g_MakeRankingDateCfgTable() (RankingDateCfg::Instance())
#define  g_GetRankingDateCfgTable() (RankingDateCfg::GetInstance())
#define  g_DelRankingDateCfgTable() (RankingDateCfg::Destroy())